<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::group(['middleware'=>'login'],function(){
Route::get('/admin',function(){
  
    return view('admin.index.index');
});
//后台
Route::controller('/admin/fri','FriController');
Route::controller('/admin/config','ConfigController');
Route::controller('/admin/user','UserController');
Route::get('/admin/login','LoginController@login');
Route::controller('/admin/weibo','WeiboController');
Route::controller('/admin/hsz','HszController');
});
Route::get('/home/fatie','FatieController@index');
// Route::get('/home/fatie', function () {
//     return view('home.fatie.fatie');
// });
Route::get('/admin/login','LoginController@login');
Route::post('/admin/login','LoginController@check');
Route::get('/home/login','IndexController@index');

//前台登陆页面
Route::get('/home/login','HloginController@login');

//前台登陆验证
Route::post('/home/login','HloginController@land');

//前台注册
Route::get('/home/register','RegisterController@register');

//验证注册
Route::post('/home/register','RegisterController@doregister');

//验证码
Route::get('/home/vcode','RegisterController@vcode');

//
//Route::get('/home/index','FitieController@index');

//邮件发送测试
Route::get('/home/sendMail','RegisterController@sendMail');
Route::get('/home/index','IndexController@index');

//前台微博
Route::controller('/home/weibo','QweiboController');
	

//激活
Route::get('/home/jihuo','RegisterController@jihuo');


//前台退出
Route::get('/home/close','CLoseController@close');

//


//找回密码
Route::controller('/home/find','FindController');

//评论
Route::get('/admin/ping','PingController@ping');
//公告
Route::controller('/admin/gg','GgController');
